﻿using Rodunu.Movies.Services.Models.Netflix;
using Rodunu.Movies.Services.NetFlix.DataProvider.NFService;

namespace Rodunu.Movies.Services.NetFlix.DataProvider
{
    public static class QueueDal
    {
        //public static Queue GetDiscQueueAvailable(INetflixService service, int startIndex)
        //{
        //    return (Queue)SerializationHelper.FromXml(typeof(Queue), service.GetDiscQueueAvailable(startIndex));
        //}

        //public static Queue GetDiscQueueAvailable(INetflixService service)
        //{
        //    return GetDiscQueueAvailable(service, 0);
        //}

        //public static Queue GetDiscQueue(INetflixService service, int startIndex, int maxResults)
        //{
        //    return (Queue)SerializationHelper.FromXml(typeof(Queue), service.GetDiscQueue(startIndex, maxResults));
        //}

        //public static QueueUpdateStatus UpdateDiscQueue(INetflixService service, QueueItem item, Queue queue)
        //{
        //    return (QueueUpdateStatus)SerializationHelper.FromXml(typeof(QueueUpdateStatus), service.UpdateDiscQueue(item.TitleLink.Href, item.Position, queue.ETag));
        //}

        //public static Queue GetInstantWatchQueue(INetflixService service, int startIndex)
        //{
        //    return (Queue)SerializationHelper.FromXml(typeof(Queue), service.GetInstantWatchQueue(startIndex));
        //}

        //public static QueueUpdateStatus UpdateInstantWatchQueue(INetflixService service, QueueItem item, Queue queue)
        //{
        //    return (QueueUpdateStatus)SerializationHelper.FromXml(typeof(QueueUpdateStatus), service.UpdateInstantWatchQueue(item.TitleLink.Href, item.Position, queue.ETag));
        //}

        //public static Status DeleteQueueEntry(INetflixService service, QueueItem item)
        //{
        //    return (Status)SerializationHelper.FromXml(typeof(Status), service.DeleteQueueItem(item.Id));
        //}

        //public static AtHome GetMoviesAtHome(INetflixService service, int startIndex)
        //{
        //    return (AtHome) SerializationHelper.FromXml(typeof (AtHome), service.GetDiscsAtHome(startIndex));
        //}
    }
}
